<div>
    <el-form    label-width="100%">
        <el-form-item label="">
        </el-form-item>
    </el-form>

            <el-form :inline="true"  label-position="right" class="regular-form" :rules="formInlineRule" ref="formInline" :model="formInline" label-width="160px">
                <div class="consume-panel" style="margin-right: 0px;margin-left: 0px;">

                        <el-form-item label="飞机类型"  prop="flightKind">
                            <el-select v-model="formInline.flightKind" placeholder="请选择飞机类型">
                                <el-option label="直升机" value="直升机"></el-option>
                                <el-option label="公务机" value="公务机"></el-option>
                                <el-option label="运输机" value="运输机"></el-option>
                                <el-option label="滑翔机" value="滑翔机"></el-option>
                            </el-select>
                        </el-form-item>

                        <el-form-item label="航班号"  prop="flightNum">
                            <el-input v-model="formInline.flightNum" placeholder="航班号"></el-input>
                        </el-form-item>



                        <el-form-item label="生产编号" prop="manufacturingNo" >
                            <el-input v-model="formInline.manufacturingNo" auto-complete="off" size="small"></el-input>
                        </el-form-item>

                        <el-form-item label="生产日期" prop="makeDate" >
                            <el-date-picker
                                    v-model="formInline.makeDate"
                                    type="date"
                                    placeholder="生产日期"
                                    @change="pickerMakeDate"
                                    format="yyyy-MM-dd"
                            >
                                <!--size="small"-->
                            </el-date-picker>
                        </el-form-item>


                        <el-form-item label="机型"  prop="flightTypeInfoPo">
                            <el-select v-model="formInline.flightType" placeholder="请选择飞机类型" @change="selectFlightType">
                                <el-option v-for="type in flightTypeInfos" :label="type.flightType" :value="type.flightType"></el-option>
                            </el-select>
                            <!--<el-input v-model="flightType" placeholder="机型"></el-input>-->
                        </el-form-item>
                        <el-form-item style="position: absolute;right: 5px;top:35px;">
                            <el-button @click="returnParent">返回</el-button>
                        </el-form-item>

                </div>


                <el-row>
                    <el-collapse v-model="activeNames" >
                        <el-collapse-item title="机身" name="1">
                            <div class="consume-panel">
                                <el-form-item label="机长(米)	"  prop="length">
                                    <el-input v-model.number="formInline.length" placeholder="机长(米)"></el-input>
                                </el-form-item>
                                <el-form-item label="机高(米)	"  prop="height">
                                    <el-input v-model.number="formInline.height" placeholder="机高(米)"></el-input>
                                </el-form-item>
                                <el-form-item label="翼展(米)	"  prop="wingspan">
                                    <el-input v-model.number="formInline.wingspan" placeholder="翼展(米)"></el-input>
                                </el-form-item>
                                <el-form-item label="客舱空间长(米)"  prop="cabinSpaceLength">
                                    <el-input v-model.number="formInline.cabinSpaceLength" placeholder="客舱空间长(米)"></el-input>
                                </el-form-item>
                                <el-form-item label="客舱空间宽(米)"  prop="cabinSpaceWidth">
                                    <el-input v-model.number="formInline.cabinSpaceWidth" placeholder="客舱空间宽(米)"></el-input>
                                </el-form-item>
                                <el-form-item label="客舱空间高(米)"  prop="cabinSpaceHeight">
                                    <el-input v-model.number="formInline.cabinSpaceHeight" placeholder="客舱空间高(米)"></el-input>
                                </el-form-item>
                                <el-form-item label="展翼比"  prop="flankRatio">
                                    <el-input v-model.number="formInline.flankRatio" placeholder="展翼比"></el-input>
                                </el-form-item>
                                <el-form-item label="机翼面积"  prop="wingArea">
                                    <el-input v-model.number="formInline.wingArea" placeholder="机翼面积"></el-input>
                                </el-form-item>
                                <el-form-item label="内仓体积"  prop="innerBinVolume">
                                    <el-input v-model.number="formInline.innerBinVolume" placeholder="内仓体积"></el-input>
                                </el-form-item>
                                <el-form-item label="外仓体积"  prop="outerBinVolume">
                                    <el-input v-model.number="formInline.outerBinVolume" placeholder="外仓体积"></el-input>
                                </el-form-item>
                                <el-form-item label="主轮距"  prop="mainWheelbase">
                                    <el-input v-model.number="formInline.mainWheelbase" placeholder="主轮距"></el-input>
                                </el-form-item>
                                <el-form-item label="前主轮距"  prop="frontMainWheelbase">
                                    <el-input v-model.number="formInline.frontMainWheelbase" placeholder="前主轮距"></el-input>
                                </el-form-item>
                                <el-form-item label="机身地面间距"  prop="groundSpacingOfTheFuselage">
                                    <el-input v-model.number="formInline.groundSpacingOfTheFuselage" placeholder="机身地面间距"></el-input>
                                </el-form-item>
                                <el-form-item v-if="formInline.flightType=='直升机'" label="螺旋桨直径"  prop="propellerDiameter">
                                    <el-input v-model.number="formInline.propellerDiameter" placeholder="螺旋桨直径"></el-input>
                                </el-form-item>
                                <el-form-item v-if="formInline.flightType=='直升机'" label="螺旋桨中心距"  prop="singleRiseAndDownLine">
                                    <el-input v-model.number="formInline.singleRiseAndDownLine" placeholder="螺旋桨中心距"></el-input>
                                </el-form-item>

                            </div>
                        </el-collapse-item>
                        <el-collapse-item title="发动机" name ="2">
                            <el-form-item label="发动机号"  prop="engineNumber">
                                <el-input v-model="formInline.engineNumber" placeholder="发动机号"></el-input>
                            </el-form-item>
                            <el-form-item label="发动马力"  prop="engingPower">
                                <el-input v-model="formInline.engingPower" placeholder="发动马力"></el-input>
                            </el-form-item>
                            <el-form-item label="燃油类型"  prop="fuelType">
                                <el-input v-model="formInline.fuelType" placeholder="发动机号"></el-input>
                            </el-form-item>
                            <el-form-item label="气缸数"  prop="cylinderNumber">
                                <el-input v-model="formInline.cylinderNumber" placeholder="气缸数"></el-input>
                            </el-form-item>
                            <el-form-item label="桨叶数量"  prop="numberOfBlades">
                                <el-input v-model="formInline.numberOfBlades" placeholder="桨叶数量"></el-input>
                            </el-form-item>
                        </el-collapse-item>
                        <el-collapse-item title="重量" name="3">
                            <div class="consume-panel">
                                <el-form-item label="空机重量"  prop="emptyWeight">
                                    <el-input v-model.number="formInline.emptyWeight" placeholder="空机重量"></el-input>
                                </el-form-item>
                                <el-form-item label="最大起飞总重"  prop="maximumTakeOffWeight">
                                    <el-input v-model.number="formInline.maximumTakeOffWeight" placeholder="最大起飞总重"></el-input>
                                </el-form-item>
                                <el-form-item label="最大可用载重"  prop="maximumAvailableLoad">
                                    <el-input v-model.number="formInline.maximumAvailableLoad" placeholder="最大可用载重"></el-input>
                                </el-form-item>
                                <el-form-item label="最大商务载重"  prop="maximumBusinessLoad">
                                    <el-input v-model.number="formInline.maximumBusinessLoad" placeholder="最大商务载重"></el-input>
                                </el-form-item>
                                <el-form-item label="最大油箱容量"  prop="maximumTankCapacity">
                                    <el-input v-model.number="formInline.maximumTankCapacity" placeholder="最大油箱容量"></el-input>
                                </el-form-item>
                                <el-form-item label="最大滑出前重量"  prop="maximumSlipBeforeWeight">
                                    <el-input v-model.number="formInline.maximumSlipBeforeWeight" placeholder="最大滑出前重量 "></el-input>
                                </el-form-item>

                                <el-form-item label="最大着陆重量"  prop="maximumLandingWeight">
                                    <el-input v-model.number="formInline.maximumLandingWeight" placeholder="最大着陆重量"></el-input>
                                </el-form-item>
                                <el-form-item label="最大零燃油重量"  prop="maximumZeroFuelWeight">
                                    <el-input v-model.number="formInline.maximumZeroFuelWeight" placeholder="最大零燃油重量"></el-input>
                                </el-form-item>
                                <el-form-item label="外仓重量"  prop="outerBinWeight">
                                    <el-input v-model.number="formInline.outerBinWeight" placeholder="外仓重量"></el-input>
                                </el-form-item>
                            </div>
                        </el-collapse-item>
                        <el-collapse-item title="性能" name="4">
                            <div class="consume-panel">

                                <el-form-item label="最大航程"  prop="maximumRange">
                                    <el-input v-model.number="formInline.maximumRange" placeholder="最大航程"></el-input>
                                </el-form-item>


                                <el-form-item label="最佳航速时的航行时间"  prop="theTimeOfNavigationAtTheBestSpeed">
                                    <el-input v-model.number="formInline.theTimeOfNavigationAtTheBestSpeed" placeholder=" 最佳航速时的航行时间"></el-input>
                                </el-form-item>

                                <el-form-item label="荷载人数"  prop="loadNumber">
                                    <el-input v-model.number="formInline.loadNumber" placeholder="荷载人数"></el-input>
                                </el-form-item>
                                <el-form-item label="内仓承载重量"  prop="bearingWeightOfInnerSilo">
                                    <el-input v-model.number="formInline.bearingWeightOfInnerSilo" placeholder="内仓承载重量"></el-input>
                                </el-form-item>


                                <el-form-item v-if="formInline.flightType!='直升机'" label="起飞跑道长度"  prop="takeoffRunwayLength">
                                    <el-input v-model.number="formInline.takeoffRunwayLength" placeholder="起飞跑道长度"></el-input>
                                </el-form-item>
                                <el-form-item label="单发升降线"  prop="singleRiseAndDownLine">
                                    <el-input v-model="formInline.singleRiseAndDownLine" placeholder="单发升降线"></el-input>
                                </el-form-item>



                                <el-form-item label="实用升限"  prop="practicalLift">
                                    <el-input v-model.number="formInline.practicalLift" placeholder="实用升限"></el-input>
                                </el-form-item>
                                <el-form-item label="着陆滑跑距离"  v-if="formInline.flightType!='直升机'" prop="landingSkatingDistance">
                                    <el-input v-model.number="formInline.landingSkatingDistance" placeholder="着陆滑跑距离"></el-input>
                                </el-form-item>
                                <el-form-item label="起飞滑跑距离" v-if="formInline.flightType!='直升机'"  prop="takeoffDistance">
                                    <el-input v-model.number="formInline.takeoffDistance" placeholder="起飞滑跑距离"></el-input>
                                </el-form-item>

                            </div>
                        </el-collapse-item>
                        <el-collapse-item title="速度" name="5">
                            <div class="consume-panel">
                                <el-form-item label="最大巡航速度"  prop="maximumCruiseSpeed">
                                    <el-input v-model.number="formInline.maximumCruiseSpeed" placeholder="最大巡航速度"></el-input>
                                </el-form-item>
                                <el-form-item label="海平面最大爬升速度"  prop="maximumClimbingSpeedOfSeaLevel">
                                    <el-input v-model.number="formInline.maximumClimbingSpeedOfSeaLevel" placeholder="海平面最大爬升速度"></el-input>
                                </el-form-item>

                                <el-form-item label="最高飞行速度"  prop="maximumFlyingSpeed">
                                    <el-input v-model.number="formInline.maximumFlyingSpeed" placeholder=" 最高飞行速度"></el-input>
                                </el-form-item>

                                <el-form-item label="远程巡航速度"  prop="remoteCruiseSpeed">
                                    <el-input v-model.number="formInline.remoteCruiseSpeed" placeholder="远程巡航速度"></el-input>
                                </el-form-item>
                                <el-form-item label="高速巡航速度"  prop="highSpeedCruiseSpeed">
                                    <el-input v-model.number="formInline.highSpeedCruiseSpeed" placeholder="高速巡航速度"></el-input>
                                </el-form-item>
                                <el-form-item label="最大平飞速度"  prop="maximumFlatSpeed">
                                    <el-input v-model.number="formInline.maximumFlatSpeed" placeholder="最大平飞速度"></el-input>
                                </el-form-item>
                                <el-form-item label="巡航速度"  prop="cruisingSpeed">
                                    <el-input v-model.number="formInline.cruisingSpeed" placeholder="巡航速度"></el-input>
                                </el-form-item>
                            </div>
                        </el-collapse-item>

                    </el-collapse>

                    <el-col :span="24">







                        <el-row class="consume-panel" style="margin-right: 0px;margin-left: 0px;background: rgba(0,0,0,0);box-shadow: none">
                            <el-col :span="24" style="text-align: center">
                                <el-form-item>
                                    <el-button v-if="parentData.showOrEdit=='add'" type="primary" @click="saveFlightInfo" >添加</el-button>
                                    <el-button v-if="parentData.showOrEdit=='edit'" type="primary" @click="saveFlightInfo" >保存</el-button>
                                    <el-button @click="returnParent">返回</el-button>
                                </el-form-item>
                            </el-col>
                        </el-row>

                    </el-col>
                </el-row>
            </el-form>
</div>